//
//  ContactViewController.m
//  Homework_17(2)
//
//  Created by 徐昊 on 16/8/6.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "ContactViewController.h"

@interface ContactViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *image;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *phoneNumber;
@property (weak, nonatomic) IBOutlet UILabel *address;

@end

@implementation ContactViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSString *str = _contact.image;
    _image.image = [UIImage imageNamed:str];
    _image.layer.cornerRadius = self.view.frame.size.width / 8;
    _image.layer.masksToBounds = YES;
    _name.text = _contact.name;
    _phoneNumber.text = _contact.phoneNumber;
    _address.text = _contact.address;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
